//
//  CarBaseInfoCell.m
//  New_Runway
//
//  Created by mack on 2018/1/26.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "CarBaseInfoCell.h"

@implementation CarBaseInfoCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addAllViews];
        self.contentView.backgroundColor = [UIColor whiteColor];
    }
    return self;
}
- (void)addAllViews
{
    
    
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 40,Screen_width, 0.5)];
    view.backgroundColor = UIColorHex(0xcccccc);
    [self.contentView addSubview:view];
    kSelfWeak;
   
    self.leftLable = [[UILabel alloc] init];
    self.leftLable.textColor = MAIN_FONT_COLOR();
    self.leftLable.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.leftLable];
    [self.leftLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(weakSelf.contentView).mas_offset(25);
        make.centerY.equalTo(weakSelf.contentView);
        
    }];
    
    self.rightLable = [[UILabel alloc] init];
    self.rightLable.textColor = MAIN_FONT_COLOR();
    self.rightLable.font = [UIFont systemFontOfSize:12];
    [self.contentView addSubview:self.rightLable];
    [self.rightLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(weakSelf.contentView).mas_offset(-15);
        make.centerY.equalTo(weakSelf.contentView);
        
    }];
    
    
    
    
    
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
